package com.yzqp.generator.util.generator.filter.map.add;

import com.yzqp.generator.bean.TableColumnInfo;
import com.yzqp.generator.prop.java.GeneratorBaseProp;
import com.yzqp.generator.util.HumpNameUtil;
import com.yzqp.generator.util.generator.filter.map.GeneratorMapFilter;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * 生成器的 map 的过滤器
 * <p>
 * 添加vue基础参数
 */
public class AddBaseVueTempleParamMapFilter implements GeneratorMapFilter {

    GeneratorBaseProp baseProp;

    public AddBaseVueTempleParamMapFilter(GeneratorBaseProp baseProp) {
        this.baseProp = baseProp;
    }

    @Override
    public Map<String, Object> filter(Map<String, Object> map, List<TableColumnInfo> tableColumnInfoList) {

        // api模块名称
        map.put("vueApiModule", baseProp.getVueApiModule());

        return map;
    }
}
